<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
require_once dirname(__FILE__) . '/data.inc.php';
$payment_id = $_GET['pid'];
$order_no = $_GET['ono'];
$order_total = $_GET['ot'];
$data = getData($payment_id, 1);
$link = 'http://' . DOMAIN . PATH;
?>
<link href="ecommerce/payments/<?php echo $folder; ?>/assets/default.css" rel="stylesheet" type="text/css" />
<style>
table.table {
  border: 1px solid #dddddd;
}

.commcs {
  word-wrap: break-word;
  word-break: break-all;
  overflow: hidden;
  width: 100%;
  height: 100%;
  font-size: 15px;
  font-weight: 600;
  font-family: Trebuchet MS;
}
</style>

</head>
<body>

<div align="center" valign="middle">
<table width="1000px" min-height="100px" class="table">
  <tr>
    <td align="center" valign="top" width="100%" height="100%">
    <table style="margin-top: 10px;">
      <tr>
        <td>
        <div width="<?php echo $data->width; ?>" height="<?php echo $data->height; ?>" align="left">
        <div class="commcs"><pre><?php echo $data->payment->instruction; ?><pre>
          </div>
        </div>
        </td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td align="center" valign="middle" style="padding-bottom: 15px;"></span> <span id="checkout" class="image_button" style="width: 180px; margin-left: 10px;" onclick="parent.parent.location.href='<?php echo $link . $data->payment->redirect_link; ?>&act=order';">
    <table>
      <tr>
        <td><img src="ecommerce/payments/<?php echo $folder; ?>/assets/account.png"></img></td>
        <td>Go to my account</td>
      </tr>
    </table>
    </span></td>
  </tr>
</table>
</div>
</body>
</html>
